<!DOCTYPE html>
<html lang="en">
<head>
<{include file="public_html/header_tag.html"}>
    <title>实训</title>

</head>
<body>
<div class="wrap">
	<!--star header-->
    <div class="header">
		<{include file="public_html/header_menu.html"}>
    </div>
	<!--end  header-->
    <!--幻灯片 star-->
    <{if isset($banner_list) AND $banner_list|count > 0}>
    <div class="new_banner c">
        <ul class="rslides f1920x400">
            <{foreach from=$banner_list item=ad_item}>
            <li style="background-image:url(<{$ad_item.ad_image_url}>);">
                <a href="<{$ad_item.ad_url}>" target="_blank"></a>
            </li>
            <{/foreach}>
        </ul>
        <script type="text/javascript">
            $(function() {
                $(".f1920x400").responsiveSlides({
                    auto: true,
                    pager: true,
                    nav: true,
                    speed: 700
                });
            });
        </script>
    </div>
    <{/if}>
    <!--幻灯片 end-->
    
    <div class="return_nav">
    	<div class="w1200 line-bottom">
        您的位置：<a href="/">首页</a><span>&gt;</span><em>实训</em>
        </div>
    </div>
	<!--star main-->
    <div class="wrap_main fix">
        <!--content star-->
        <div class="col_main">
            <!--star在线题库-->
            <div class="box_item m-t30" style="overflow:visible;">
                <!--star 筛选功能-->
                <!-- <div id="selectList" class="screenBox line-all b-FFFFFF fs14">
                    <dl class="listIndex line-bottom">
                      <dt>账套筛选：</dt>
                      <dd>
                      	<span class="notBuxian">共<span class="c-1aa3fa">10</span>个课程</span>
                      </dd>
                    </dl>
                    <dl class="listIndex line-bottom">
                      <dt>课程分类：</dt>
                      <dd>
                      <a class="selected" href="javascript:void(0)"><span>不限</span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>商业行业账</span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>酒店餐饮行业账</span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>物流行业账 </span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>酒店餐饮行业账</span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>物流行业账 </span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>酒店餐饮行业账</span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>物流行业账 </span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>酒店餐饮行业账</span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>物流行业账 </span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>酒店餐饮行业账</span><i>&times;</i></a>
                      <a href="javascript:void(0)"><span>物流行业账 </span><i>&times;</i></a>
                      </dd>
                    </dl>
                </div> -->
                <!--end 筛选功能-->
            	<!--star-->
                <div class="mc LH25 p-t35">
                    <ul class="wList25 zhentiCC">
                        <{foreach from=$shixun_list item=shixun}>
                        <li class="p-b30">
                        <dl class="line-all">
                            <dt class="img280200 ir">
                                <a href="#"><img src="http://admin.520dax.com<{$shixun.titleImage}>"></a>
                                <!-- <div class="tag">1262人再练习</div> -->
                                <div class="rose">
                                    <div class="wtwolist fs14 tac" style="padding:60px 20px;">
                                        <span class="wtwls"><a class="u2" href="javascript:;" id="<{$shixun.Id}>">立即练习</a></span>
                                        <span class="wtwls"><a class="u2" href="http://shicao.520dax.com/Default.aspx?zhangtaoID=<{$shixun.Id}>">免费试用</a></span>
                                    </div>
                                </div>
                            </dt>
                            <dd class="fs14 p-lr20">
                                <div class="fs16 h20 oh p-tb10"><{$shixun.ztName}></div>
                                <div class="c-999999 p-t10 h40 oh LH20">
                                    <p><{$shixun.description}></p>
                                </div>
                            </dd>
                        </dl>
                        </li>
                        <{/foreach}>
                    </ul>
                </div>
            	<!--end-->
                <!--star分页-->
                <!-- <div class="pages m-tb40">
                    <ul>
                        <li><span>&lt;</span></li>
                        <li><a href="">1</a></li>
                        <li class="curr"><a href="">2</a></li>
                        <li><a href="">3</a></li>
                        <li><span>&gt;</span></li>
                        <li>100 条 2/4 页</li>
                    </ul>
                </div> -->
                <!--end分页-->
            </div>
            <!--end在线题库-->
            <div class="fix" style="height:90px;"></div>

        </div>
        <!--content end-->
    </div>
	<!--end  main-->
    <!--star  footer-->
    <div class="footer b-FFFFFF">
    <{include file="public_html/footer.html"}>
    </div>
    <!--end  footer-->
</div>
<script>
    $(".wtwls").children("a").click(function(){
        var sx_id = $(this).attr("id");
        $.ajax({
            type: "POST",
            url:"/shixun/check_shixun_order",
            dataType:"json",
            data:{'sx_id':sx_id},
            success: function(result){
                // layer.close(ii);
                if(result == 1){
                    location.href="http://shicao.520dax.com/Default.aspx?zhangtaoID="+sx_id;
                }else if(result < 0){
                    location.href="/login";
                }else{
                    $.ajax({
                        type: "POST",
                        url:"/shixun/create_sx_order",
                        dataType:"json",
                        data:{'sx_id':sx_id},
                        success: function(res){
                            // layer.close(ii);
                            if(res > 0){
                                location.href="/order/settle/"+res;
                            }
                        }
                    });
                }
            }
        });
    })
</script>
</body>
</html>
